<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>javascript 阶段</title>
</head>

<body>


    <script>
        // 外部循环 5 次
        // 内部循环 3 次
        var count = 0;

        // for (var i = 1; i <= 5; i++) {
        //     console.log("外：" + i);

        //     for (var j = 1; j <= 3; j++) {
        //         console.log("内部循环第" + j + "次");
        //         count++;
        //     }
        // }
        // console.log(count);//15

        for (var a = 1; a <= 9; a ++) {
            for(var b ; b <= 9 ; b ++){
                var c = a*b;
                console.log(a + "*" + b + "=" + c);
            }
        }
    </script>
</body>

</html>